#pragma once

#include <Windows.h>

namespace GPUCC
{
	namespace CPU
	{
		class CriticalSection
		{
		public:
			CriticalSection();
			~CriticalSection();

			void Enter();
			void Leave();
			bool TryEnter();

		private:
			CRITICAL_SECTION m_CriticalSection;
		};
	}
}